<? $page_title='价格参考' ?>
<? include "FASHION/page_header.phtml" ?>
<form method="post">
<div class="nobr">
	<input type="text" name="title" size="12" value="<?= fetch_a_string('title') ?>" />
	<input type="submit" value="检索" class="button" />
</div>
</form>
<table class="list" cellpadding=0 cellspacing=0>
<tr class="nobg">
    <th>材料编号</th>
    <th>材料名称</th>
    <th>品牌</th>
    <th>规格</th>
    <th>单位</th>
    <th>报价</th>
    <th>参考价格</th>
    <th>备注</th>
</tr>

<{if $wares}>
<{foreach item=ware from=$wares}>
<TR>
	<TD><{$ware.sno}></TD>
	<TD><{$ware.name}></TD>
	<TD><{$ware.brand}></TD>
	<TD class="text"><{$ware.specific}></TD>
        <TD><{$ware.unit}></TD>
	<TD>
            <?$_arr=array();?>
            <{if $ware.items}>            
            <table cellpadding=0 cellspacing=0 class="list">
                <tr class="nobg">
                <{foreach item=supplier from=$ware.items}>  
                        <?$_arr[]=$supplier.quote;?>
                        <th><{$supplier.supplier_name}></th>                
                <{/foreach}>
                </tr>
                <tr>
                
                <{foreach item=supplier from=$ware.items}>                
                        <td class="fnum"<{if min($_arr)==$supplier.quote}>style="color:blue"<{/if}>><{$supplier.quote}></td>                
                <{/foreach}>
                </tr>
            </table>
            <{/if}>
        </TD>
        <TD class="fnum"><?=@min($_arr)?></TD>
        <TD class="text"><{$ware.remark}></TD>
	
</TR>
<{/foreach}>
<{/if}>
</table>

<? Html::pager($pager) ?>
<div class="warn"><p>参考报价取多方比价最低值</p></div>
<? include "FASHION/page_footer.phtml" ?>
